//
//  YunDanBatchPaiDanCell.m
//  NtoccDriverNew
//
//  Created by 张天兴 on 2023/3/20.
//  Copyright © 2023 GCY. All rights reserved.
//

#import "YunDanBatchPaiDanCell.h"

@implementation YunDanBatchPaiDanCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.erweimaButton setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.erweimaButton.backgroundColor = Green_Color;
    self.erweimaButton.titleLabel.font = [UIFont systemFontOfSize:14];
    [self.erweimaButton setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.erweimaButton.layer.masksToBounds = YES;
    self.erweimaButton.layer.cornerRadius = 5;
    [self.piliangButton setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.piliangButton.backgroundColor = Green_Color;
    self.piliangButton.titleLabel.font = [UIFont systemFontOfSize:14];
    [self.piliangButton setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.piliangButton.layer.masksToBounds = YES;
    self.piliangButton.layer.cornerRadius = 5;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)assignmentYunDanBatchPaiDancell:(pinLiangYunDanModel *)model{
    self.nameLabel.text = model.shipmentName;
    self.daipaidanLabel.text = CJStringWithFormat(@"%lu",(unsigned long)model.sonCodes.count);
    self.zhuangAdressLabel.text = model.shipperAddress;
    self.loadDetailAddressLab.text = model.shipperDetailAddress;
    self.xieAdressLabel.text = model.consigneeAddress;
    self.unloadDetailAddressLab.text = model.consigneeDetailAddress;
    self.numberLabel.text = [NSString stringWithFormat:@"%@ %lu%@",
                             [NSString nullToString:CJStringWithFormat(@"%@", model.coalTypeName)],
                              model.perWeight,
                             [NSString nullToString:CJStringWithFormat(@"%@", model.coalUnitName)]];
    self.inforLabel.text = CJStringWithFormat(@"%lu%@",model.price,model.isTrunkName);
}
@end
